package com.alibaba.sdk.model.input;

import com.alibaba.sdk.model.BaseInput;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 登录参数接收类
 *
 * @author huangTT(bluehtt @ gmail.com)
 * @author Shawn (Shawn_0108@163.com)
 * @version 1.0
 * @date 2020/6/4
 */
@ApiModel(description = "登录参数接收类")
@Data
public class LoginInput extends BaseInput {

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

    private static final long serialVersionUID = -1821724512139246367L;
}
